<?php
namespace app\common\service\partners;

use app\common\dao\PartnersDao;
use app\common\dao\LogDao;
use app\common\dao\AdminAuthorizeDao;
use app\common\service\BaseService;
use app\common\utils\Unique;
use think\facade\Session;

/**
 * 合作伙伴
 */
class PartnersService extends BaseService
{
    /**
     * 获取
     * 
     * @return array
     */
    public function getAll()
    {
        $list = (new PartnersDao())->order("id DESC")->select()->toArray();

        // 过滤
        $array = [];
        foreach ($list as $key => $value) {
            unset($value['password']);

            $array[$key] = $value;
        }

        return $array;
    }
}
